package com.doit.doc;

import java.io.*;
import java.nio.Buffer;

public class ApisDemo8 {
    public static void main(String[] args) throws IOException {

        //创建字符缓冲流对象
        BufferedReader br = new BufferedReader(new FileReader("D:\\test\\a.txt"));

        //读取一行数据
        String line = br.readLine();
        System.out.println(line);

        //读取一个字符
        int read = br.read();
        System.out.println(read);


        br.close();



    }
}
